<? 
require_once '../includes/includes.php';
include ("seguridad.php");
conexion();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?php titulopanel();?></title>
<link rel="STYLESHEET" type="text/css" href="estilo.css">
<link type="text/css" href="../plugins/jquery_ui/css/smoothness/jquery-ui-1.8.13.custom.css" rel="Stylesheet" />   


<script type="text/javascript" src="../plugins/jquery.js"></script>
<script type="text/javascript" src="../plugins/functions.js"></script>

<script type="text/javascript" src="../plugins/jquery_ui/js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="../plugins/jquery_validate/jquery.validate.js"></script>
<script type="text/javascript" src="../plugins/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>


<!-- EDITOR -->
<?php include_once 'includes/tinymce.html';?>

<!-- /TinyMCE --> 

<!-- datapicker -->
<script> 
	$(document).ready(function(){
		$("#created" ).datepicker({
			dateFormat: 'yy-mm-dd',
			showOn: "button",
			buttonImage: "images/calendar.ico",
			buttonImageOnly: true

				});
	})
</script> 
	
<script>
	$(function() {
		$( "input:submit, a, button", ".boton" ).button();		
	});
</script>	

<!-- Errores jaquery -->



<script>
  $(document).ready(function(){
		
	$("#form").validate({
		rules: {			
			categorie: {
				required: true,
				},
			created: {
				required: true,
				},	
			title: {
				required: true,
					},
			summary: {
				required: true,
				},
			conten: {
					required: true,
					},	
		},		
		                
		messages: {
			categorie: {
				required: "Seleccione una categoria"
				
						},
			created: {
				required: "Seleccione la fecha"
			 			},			

            title:{
                required: "Coloque un título"
                    },
                    
            summary:{
                required:"Coloque un copete"        
                     },        
            conten: "Coloque un cuerpo"		
                    
			}
	});
	
  });

</script>
<!-- /ERRORES -->


</head>

<body>


<div id="contenedor">

  	<div id="encabezado"><?php include('header.php') ?></div><!--fin de encabezado-->



	<div id="menuizquierda"><?php include('menu.php') ?></div>	<!--fin de menuizquierda-->

	
	<div id="content">			
	
	<?php
	
	$id = $_GET[id];
	
	$conalbum = mysql_query("select * from album where id='$id'");
	
	
	$conima = mysql_query("select * from images_album where album_id='$id'");
	
	
	while($datoima=mysql_fetch_array($conima)){
		
		echo '<img width="150" src="../images_gallery/'.$id.'_'.$datoima[url].'" />';
		
	}
	
	
	?>
	
	</div><!--fin de content-->


	<div id="piepagina">
	</div>
			<!--fin de piepagina-->
</div>

</body>

</html>


